package thread.single;

public class Demo01Single {
    public static void main(String[] args) {
        Single01 s1 = Single01.getInstance();
        Single01 s2 = Single01.getInstance();
        System.out.println(s1 == s2);

        Single02 ss1 = Single02.getInstance();
        Single02 ss2 = Single02.getInstance();
        System.out.println(ss1 == ss2);
    }
}
